<?php
namespace app\home\controller;
use app\home\model\ArticleModel;

class Article extends Base
{
    public function index(){
        $id = input('id',0,'intval');
        $model = new ArticleModel();
        $vo = $model->where(['id'=>$id])->find();
        $this->assign('vo',$vo);
        return view();
    }
}
